import { defineStore } from 'pinia'

export const weatherStore = defineStore({
    id: 'calendar',
    state: () => ({
        weatherDataList:{} as any,
        newDay:null as any
    }),
    actions: {
        setData: function(data:any) {
            this.weatherDataList = data.weatherDataList
            this.newDay = data.newDay
        }
    },
    // 为true，app-user这个store中的state数据将缓存到localStorage
    persist: true,
  })
  